<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-on 修饰符</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
    <div id="app">
     <div @click="divClick">
        <button @click.stop="btnClick">按钮</button>
        <!-- stop修饰符阻止冒泡，prevent阻止默认事件 -->
     </div>
    </div>
    <script>
        const app = new Vue({
            el: "#app",
            data: {
                message: "你好啊"
            },
            methods: {
                btnClick() {
                    console.log('btnClick')
                },
                divClick() {
                    console.log("divClick")
                }
            }

        })
    </script>
</body>
</html>